home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 March
/
PCWorld_2007-03_cd.bin
/
komunikace
/
acehtml
/
acehtmlfreeware.exe
/
scriptdef
/
Delayed Popup.sd
< prev
next >
Wrap
INI File
|
2006-09-13
|
1KB
|
52 lines
[SUBJECT]
Description=Automatically opens a new popup window a given number of seconds after the page finishes loading
ImageIndex=-1
Folder=Tools
[HEAD_TEXT]
;<script language="JavaScript">
;<!-- Begin
;closetime = 0; // Close window after __ number of seconds?
;// 0 = do not close, anything else = number of seconds
;
;function Start(URL, WIDTH, HEIGHT) {
;windowprops = "left=50,top=50,width=" + WIDTH + ",height=" + HEIGHT;
;preview = window.open(URL, "preview", windowprops);
;if (closetime) setTimeout("preview.close();", closetime*1000);
;}
;
;function doPopup() {
;url = "`URL`";
;width = `Width`; // width of window in pixels
;height = `Height`; // height of window in pixels
;delay = `Delay`; // time in seconds before popup opens
;timer = setTimeout("Start(url, width, height)", delay*1000);
;}
;// End -->
;</script>
;
[BODY_TAG]
;OnLoad="doPopup();"
[`URL`]
Kind=S
Value=http://www.yahoo.com
[`Width`]
Kind=S
Value=250
[`Height`]
Kind=S
Value=150
[`Delay`]
Kind=S
Value=2